﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="list.aspx.vb" Inherits="Assignment_2___Prototype.list" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .transparent
        {}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    &nbsp;
    <td width="10%">
        <a href="../RSS.aspx"><img class="RSSlogo" src="Images/rss.png" /></a>
    </td>

    
<asp:Rating  BorderWidth="1" BorderStyle="Solid"
    width="200" 
    Height="40" 
    ID="ParrotRating"  
    CurrentRating="2" 
    runat="server" 
    StarCssClass="ratingStar" 
    WaitingStarCssClass="savedRatingStar" 
    EmptyStarCssClass="emptyRatingStar" 
    filledStarCssClass="filledRatingStar"
    MaxRating="5" 
    >
    </asp:Rating>

    <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
        AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
        Width="638px" CssClass="transparent"  
    PagerStyle-CssClass="pgr"  
    AlternatingRowStyle-CssClass="alt" Height="38px" AllowPaging="True" 
        CellPadding="4" HorizontalAlign="Center" PageSize="5" ForeColor="#333333" 
        GridLines="None">
<AlternatingRowStyle CssClass="alt" BackColor="White"></AlternatingRowStyle>
        <Columns>
            <asp:BoundField DataField="Species" HeaderText="Species" 
                SortExpression="Species" >
            </asp:BoundField>
            <asp:BoundField DataField="Breed" HeaderText="Breed" 
                SortExpression="Breed" >
            </asp:BoundField>

            <asp:TemplateField HeaderText="Picture">
            
            <ItemTemplate>
                    <asp:HyperLink ID="HyperLink10" runat="server" NavigateUrl='<%# Eval("ParrotID", "~/Details.aspx?ParrotID={0}") %>'>
                    <asp:Image CssClass="parrotImage"  ID="Image1" runat="server" ImageUrl='<%# Eval("Picture") %>' />
                    </asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField HeaderText="Rating" Text="Rate : " />
        </Columns>

        <EditRowStyle BackColor="#7C6F57" />

        <FooterStyle BackColor="#1C5E55" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />

<PagerStyle CssClass="pgr" BackColor="#666666" ForeColor="White" 
            HorizontalAlign="Center"></PagerStyle>
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
</asp:GridView>

    <br />
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

    <asp:Button ID="btn_AddItem" runat="server" Text="Add New Parrot!" CssClass="buttons" 
        Height="35px" Width="155px"/>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Species], [Breed], [Picture], [ParrotID] FROM [Parrot]"></asp:SqlDataSource>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

</asp:Content>
